package message;

import java.io.Serializable;
/**
 * this class represent the massage "START_COMUNICATION"
 * implement the interface message
 * @author ran
 *
 */
public class StartComunication implements Message,Serializable{
	/**
	 * default serialVersionUID
	 */
	private static final long serialVersionUID = 1L;
	String userName;
	String pass;
	String computerName;
	//getters and setters
	public String getComputerName() {
		return computerName;
	}
	public String getUserName() {
		return userName;
	}
	public String getPass() {
		return pass;
	}
	public StartComunication(String userName, String pass,String copmuterName) {
		this.userName=userName;
		this.pass=pass;
		this.computerName=copmuterName;
	}
	/**
	 * @Override getType method in Message interface
	 */
	public MessageType getType() {
		return MessageType.START_COMUNICATION;
	}
}
